<?php
use App\Http\Tools as Tools;
?>
<!--    继承layouts/std_master.php模板  -->
@extends('layouts.std_master')


<!-- 重写内容  -->
@section('content')
<div class="col-lg-3"></div>
<div class="col-lg-6">
<h1 align="center">项目申报</h1>
<div align="center">
	<font color="red"><b>信息提示:</b></font>1、每个学生只能参加一个项目。
	<a href="/argue_book/argue_book.doc"><font color="red"><b>2、下载：南京理工大学国省级立项答辩书</b></font></a>
</div>
<br><br>


<table align="center" border="1">
	<tr>
		<th>编号</th>
		<th>项目</th>	
		<th>资助类别</th>
		<th>指导教师</th>
		<th>立项答辩书</th>
		<th>状态</th>
		<th>操作</th>
	</tr>
	<tr>
		<td>1</td>
		<td>
			@if($data->pid!=11111111)
			<a href="/std_pro_detail/{{$data->pid or ''}}">{{$data->pname or ''}}</a>
			@else
			<a href="#">{{$data->pname or ''}}</a>
			@endif
		</td>
		<td>
			{{Tools::getSupportType($data->support_type or '0')}}
		</td>
		<td>
			{{$data->teacher->name or ''}}
		</td>
		<td>
			未上传
		</td>
		<td>
			{{Tools::getState($data->type )}}
		</td>
		<td>
			@if($data->pid!=11111111 && $data->type < 2))
				<div>
					<form action="/std/delete_apply" method="GET">
						<input type="submit" name="submit" value="取消申请" />
					</form>
				</div>	
			@elseif(Tools::getState($data->type >= 2))
				<div>
					<form action="/std/delete_apply" method="GET">
						<input type="submit" name="submit" disabled value="取消申请" />
					</form>
				</div>	
			@else
				<div>
					<form action="/std/std_select" method="GET">
						<input type="submit"  value="选择项目" />
					</form>
				</div>	
			@endif
		</td>

	</tr>

</table>
</div>
@endsection